using SqlSugar;

namespace Luka.Entities.System;

/// <summary>
///
///</summary>
[SugarTable("SysGroup")]
[Tenant("System")]
public class SysGroup
{
    /// <summary>
    /// 主键id
    ///</summary>
    [SugarColumn(ColumnName = "Id", IsPrimaryKey = true, IsIdentity = true)]
    public int Id { get; set; }

    /// <summary>
    /// 组织名称
    ///</summary>
    [SugarColumn(ColumnName = "Name")]
    public string Name { get; set; }

    /// <summary>
    /// 父级Id
    ///</summary>
    [SugarColumn(ColumnName = "ParentId", IsNullable = true)]
    public int? ParentId { get; set; }

    /// <summary>
    /// 状态
    ///</summary>
    [SugarColumn(ColumnName = "Status", IsNullable = true)]
    public int? Status { get; set; }

    /// <summary>
    /// 备注
    ///</summary>
    [SugarColumn(ColumnName = "Remark", IsNullable = true)]
    public string? Remark { get; set; }

    /// <summary>
    /// 类型
    ///</summary>
    [SugarColumn(ColumnName = "Type", IsNullable = true)]
    public int? Type { get; set; }

    /// <summary>
    /// 负责人Id
    ///</summary>
    [SugarColumn(ColumnName = "LeaderId", IsNullable = true)]
    public int? LeaderId { get; set; }

    /// <summary>
    /// 排序
    ///</summary>
    [SugarColumn(ColumnName = "Sort", IsNullable = true)]
    public int? Sort { get; set; }

    /// <summary>
    /// 创建时间
    ///</summary>
    [SugarColumn(ColumnName = "Created", IsNullable = true)]
    public DateTime? Created { get; set; }

    /// <summary>
    /// 创建人
    ///</summary>
    [SugarColumn(ColumnName = "Creater", IsNullable = true)]
    public string? Creater { get; set; }

    /// <summary>
    /// 修改时间
    ///</summary>
    [SugarColumn(ColumnName = "Updated", IsNullable = true)]
    public DateTime? Updated { get; set; }

    /// <summary>
    /// 修改人
    ///</summary>
    [SugarColumn(ColumnName = "Updater", IsNullable = true)]
    public string? Updater { get; set; }

    /// <summary>
    /// 是否删除
    ///</summary>
    [SugarColumn(ColumnName = "IsDel")]
    public int IsDel { get; set; }
}